import request from './request'

//登录
export const GoLogin = (params) => request.post('/nebula-api/login', params)
//接口：全部订单
export const OallList = (params) => request.get('/nebula-api/order/v1/list', {params})
//接口：待发货
export const OallList1 = (params) => request.get('/nebula-api/order/v1/list/1', {params})
//接口：待收货
export const OallList2 = (params) => request.get('/nebula-api/order/v1/list/2', {params})
//接口：待评价
export const OallList3 = (params) => request.get('/nebula-api/order/v1/list/3', {params})
//接口：发货
export const OallSend = (params) => request.post('/nebula-api/order/v1/send', params)
//接口：确定收货
export const Confirm = (params) => request.post('/nebula-api/order/v1/confirmReceipt/'+params.serialNo)
//接口：订单评价
export const Evaluate = (params) => request.post('/nebula-api/order/v1/evaluate/',params)


//接口：评价详情
export const OrderInfo = (params) => request.get('/nebula-api/order/v1/evaluateInfo/'+params.serialNo)

//接口：待评价
export const OrderList3 = (params) => request.get('/nebula-api/order/v1/list/3',{params})
//接口：消息中心列表
export const Message = (params) => request.get('/nebula-api/api/message',{params})
//接口：消息中心详情
export const MessageXQ = (params) => request.get('/nebula-api/api/message/'+params.id)
//接口：标记信息为已读
//axios 的转换
const QS=require('qs')
export const Updates = (params) => request.put('/nebula-api/api/message/updates',QS.stringify(params))
//接口：个人中心用户信息展示
export const Userslist = (params) => request.get('/nebula-api/users/list',{params})
//接口：个人中心 版本信息
export const Usersversion = (params) => request.get('/nebula-api/users/version',{params})
//接口：个人中心用户信息详情
export const UsersInfo = (params) => request.get('/nebula-api/users/info',{params})
//接口：物流单列表
export const Starlist = (params) => request.get('/nebula-api/api/star',{params})
//接口：物流单评价
//axios 的转换
export const StarPJ = (params) => request.put('/nebula-api/api/star',(params))
//接口：查询物流单评价详情
export const StarXQ = (params) => request.get('/nebula-api/api/star/'+params.id)
//接口：客户列表信息
export const cust = (params) => request.get('/nebula-api/api/cust',(params))

// 接口：获取客户信息详情
export const custXQ = (params) => request.get('/nebula-api/api/cust/'+params.id)

// 接口：获取客户视图
export const CustShitu = (params) => request.post('/nebula-api/api/cust/'+params.id)
// 接口：修改客户信息
export const TJCust = (params) => request.put('/nebula-api/api/cust',(params))
// 接口：新增客户信息
export const XZCust = (params) => request.post('/nebula-api/api/cust',params)
// 接口：走访列表信息
export const visit = (params) => request.get('/nebula-api/api/visit',(params))
// 接口：走访列表信息
export const visitTJ = (params) => request.post('/nebula-api/api/visit',params)